package yuan.deng.service.impl;

import yuan.deng.dao.DetailsDao;
import yuan.deng.dao.impl.DetailsDaoImpl;
import yuan.deng.domain.Details;
import yuan.deng.service.DetailsService;

import java.util.List;

public class DetailsServiceImpl implements DetailsService {
    DetailsDao detailsDao=new DetailsDaoImpl();

    @Override
    public List<Details> findAll() {
        return detailsDao.findAll();
    }

    @Override
    public int addDetails(Details details) {
        return detailsDao.addDetails(details);
    }


}
